<!DOCTYPE html>
<html lang="en">
<body>
	<textarea></textarea>
	<script
		src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
	<script>
		(function($) {
			// Set the text contained within 
			$('textarea').val('I am a textarea');
			// Alerts "I am a textarea" 
			alert($('textarea').val());
		})(jQuery);
	</script>
</body>
</html>